two constraints